package cnm.model;

public class ResourceTypesUtil {
	static public String typeToExt(int type) {
		switch (type) {
			case ResourceTypes.TYPE_AUDIO:
				return "mp3";
			case ResourceTypes.TYPE_VIDEO:
				return "flv";
			case ResourceTypes.TYPE_MAGZINE:
				return "swf";
			default:
				return null;
		}
	}
	
}
